package com.alibaba.pet.service;

import com.alibaba.basic.service.IBaseService;
import com.alibaba.basic.util.PageList;
import com.alibaba.pet.domain.SearchMasterMsg;
import com.alibaba.pet.dto.MsgDto;
import com.alibaba.pet.query.SearchMasterMsgQuery;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Amber
 * @since 2022-06-18
 */
public interface ISearchMasterMsgService extends IBaseService<SearchMasterMsg> {

    void publish(SearchMasterMsg searchMasterMsg, HttpServletRequest request);

    /**
     * 用户
     * @param query
     * @param request
     * @return
     */
    PageList<SearchMasterMsg> user(SearchMasterMsgQuery query, HttpServletRequest request);

    /**
     * 审核成功待处理
     * @param query
     * @param request
     * @return
     */
    PageList<SearchMasterMsg> toHandle(SearchMasterMsgQuery query, HttpServletRequest request);

    /**
     * 拒单
     * @param msgId
     */
    void reject(Long msgId);

    /**
     * 接单
     * @param msgDto
     */
    void accept(MsgDto msgDto);
}
